Scrapboxを使ったAnkiデータ構築案2:note type
code:noteType.json
{
"id": 343480954545,
"name": "システム英単語用穴埋め問題",
defaultのdeckは指定しない
code:noteType.json
"isCloze": true,
"fields": [
{ "name": "Text", "description": "問題文" },
"Description",
{ "name": "SourceURL", "description": "問題の取得元URL" }
]
}
cssはcode:cssに書く
code:css
.card {
display: flex;
justify-content: center;
font-family: arial;
font-size: 20px;
color: black;
background-color: white;
}
.cloze {
font-weight: bold;
color: blue;
}
.nightMode .cloze {
color: lightblue;
}
latexはpre.texとpost.texに書く
template (Anki)は:templateName.question.htmlと:templateName.answer.htmlのそれぞれに、:templateNameの表面・裏面のHTMLを書く exampleは指定不能
code:Card 1.question.html
{{cloze:Text}}
{{type:Text}}
code:Card 1.answer.html
{{cloze:Text}}
<hr>
{{Description}}
<a href="{{SourceURL}}">source</a>